import { MsbRequest } from '../plugins/requset';

/**
 * @Description: 获取验证码
 * @param {*} passengerPhone
 * @return {*}
 */
const ApiGetVerifyCode = (data={passengerPhone}) => 
MsbRequest.post('/verification-code',data,{notVerifyToken:true})
/** 
 * @Description: 验证验证码
 * @param {*} passengerPhone
 * @param {*} verificationCode
 * @return {*}
 */
const ApiPostVerifyCodeCheck = (data={passengerPhone,verificationCode}) => 
MsbRequest.post('/verification-code-check',data,{notVerifyToken:true})

/**
 * @Description: 根据token获取乘客信息
 * @return {*}
 */
const ApiGetUserInfo = () => MsbRequest.get('/users/');

export {
    ApiGetVerifyCode,
    ApiPostVerifyCodeCheck,
    ApiGetUserInfo
}